Q badge Class
Add little badge to one or multiple corners of tool element
Constructor
Q badge
(
Q.Tool
-
options
Parameters:
-
options
ObjectOverride various options for this tool
-
[tl]
String optionalsettings for top left badge. If == null - badge remove.
-
[icon]
String optionalBadge icon. Can be "{{Q}}/img/..." or "../img/...". If icon=null - badge remove. -
[size=options.size]
String optionalBadge width. -
[top=0]
String optionalBadge top position. -
[left=0]
String optionalBadge left position. -
[right]
String optionalBadge right position. if defined - left position ignored. -
[bottom]
String optionalBadge bottom position. if defined - top position ignored. -
[font-size]
String optionalBadge content font size. -
[content]
String optionalBadge content. -
[onClick]
String optionalBadge click event handler. -
[className]
String optionalName of class to add to element -
[display]
String optionalcss "display" style for corner element. -
[onCreate]
Q.Event optionalEvent executed every time badge element created. Get tool as context and badge element, corner, style as arguments.
-
-
[tr]
String optionalsettings for top right badge. If == null - badge remove.
-
[icon]
String optionalBadge icon. Can be "{{Q}}/img/..." or "../img/...". If icon=null - badge remove. -
[size=options.size]
String optionalBadge width. -
[top=0]
String optionalBadge top position. -
[right=0]
String optionalBadge right position. -
[left]
String optionalBadge left position. if defined - right position ignored. -
[bottom]
String optionalBadge bottom position. if defined - top position ignored. -
[font-size]
String optionalBadge content font size. -
[content]
String optionalBadge content. -
[onClick]
String optionalBadge click event handler. -
[className]
String optionalName of class to add to element -
[display]
String optionalcss "display" style for corner element. -
[onCreate]
Q.Event optionalEvent executed every time badge element created. Get tool as context and badge element, corner, style as arguments.
-
-
[br]
String optionalsettings for bottom right badge. If == null - badge remove.
-
[icon]
String optionalBadge icon. Can be "{{Q}}/img/..." or "../img/...". If icon=null - badge remove. -
[size=options.size]
String optionalBadge width. -
[right=0]
String optionalBadge right position. -
[bottom=0]
String optionalBadge bottom position. -
[left]
String optionalBadge left position. if defined - right position ignored. -
[top]
String optionalBadge top position. if defined - bottom position ignored. -
[font-size]
String optionalBadge content font size. -
[content]
String optionalBadge content. -
[onClick]
String optionalBadge click event handler. -
[className]
String optionalName of class to add to element -
[display]
String optionalcss "display" style for corner element. -
[onCreate]
Q.Event optionalEvent executed every time badge element created. Get tool as context and badge element, corner, style as arguments.
-
-
[bl]
String optionalsettings for bottom left badge
-
[icon]
String optionalBadge icon. Can be "{{Q}}/img/..." or "../img/...". If icon=null - badge remove. -
[size=options.size]
String optionalBadge width. -
[bottom=0]
String optionalBadge bottom position. -
[left=0]
String optionalBadge left position. -
[right]
String optionalBadge right position. if defined - left position ignored. -
[top]
String optionalBadge top position. if defined - bottom position ignored. -
[font-size]
String optionalBadge content font size. -
[content]
String optionalBadge content. -
[onClick]
String optionalBadge click event handler. -
[className]
String optionalName of class to add to element -
[display]
String optionalcss "display" style for corner element. -
[onCreate]
Q.Event optionalEvent executed every time badge element created. Get tool as context and badge element, corner, style as arguments.
-
-
[size="15px"]
String optionalDefault badge size.
-
Returns:
Item Index
Methods
Methods
zoomer
(
-
[options]
Zoomer tool Generates an image and zooms it
Parameters:
-
[options]
Object optionalthis object contains properties for function
-
[overlayWidth]
Number optionalImage Overlay Width
-
[overlayHeight]
Number optionalImage Overlay Height
-
[leftMargin]
Number optionalImage left margin
-
[rightMargin]
Number optionalImage right Margin
-
[topMargin]
Number optionalImage top Margin
-
[bottomMargin]
Number optionalImage bottom Margin
-
[zoomedWidth]
Number optionalZooming width
-
[zoomedHeight]
Number optionalZooming height
-
[widthRatio]
Number optionalRatio for width on zooming
-
[heightRatio]
Number optionalRatio for height on zooming
-
[overlayClass]
String optionalClass for Overlay styles
-